package com.itron.base.model.vo;

import java.io.Serializable;

public class ResultVO<T> implements Serializable {
    private static final long serialVersionUID = 1451589387303987463L;
    /** 状态码 */
    private Integer code;

    /** 提示信息 */
    private String msg;

    /** 携带的数据 */
    private T data;

    public ResultVO(int code , String msg){
        this.code= code;
        this.msg = msg;
    }

    public ResultVO(int code , String msg ,T data){
        this.code= code;
        this.msg = msg;
        this.data = data;
    }



    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
